package com.yunxiao.cloud.auth.server.service.impl;

import com.yunxiao.cloud.auth.server.entity.SysUser;
import com.yunxiao.cloud.auth.server.mapper.SysUserMapper;
import com.yunxiao.cloud.auth.server.service.SysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author yunxiao
 * @since 2020-02-18
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Resource
    private SysUserMapper sysUserMapper;


    @Override
    public SysUser getUserByName(String username) {
        return sysUserMapper.getUserByName(username);
    }
}
